package com.lynx.mapper.cb;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.lynx.mapper.cb.model.JobInfoPO;

/**
 * @author chris.liu
 * @version 5/6/14 5:07 PM
 */
@Repository("jobInfoMapper")
public interface JobInfoMapper {

    void addJobInfo(@Param("jobInfo") JobInfoPO job);

    void deleteJobInfo(@Param("id") int id);

    int getJobNum();

    JobInfoPO getJobInfo(@Param("id") int id);

    List<JobInfoPO> getJobInfos(@Param("offset") int offset, @Param("limit") int limit);

    void updateJobInfo(@Param("jobInfo") JobInfoPO job);
}
